from urllib.request import urlopen
from bs4 import BeautifulSoup

x=urlopen('https://www.cnblogs.com/wumaiqiti1020/p/10909550.html')
bs=BeautifulSoup(x.read(),'html.parser')
print(bs.title)
